package com.pactera.asmp.server.service;

import com.pactera.asmp.server.pojo.ScriptInfo;
import com.pactera.asmp.server.pojo.ScriptInfoHistory;
import com.pactera.asmp.server.utils.PageDataResult;
import java.util.List;

/**
 * @ProjectName: server
 * @Package com.pactera.asmp.server.service
 * @ClassName: IScriptInfoHistoryService
 * @Description: IScriptInfoHistoryService
 * @Date 2020/06/28 16:49
 * @Author lvzhiqiang
 * @Version 1.0
 */
public interface IScriptInfoHistoryService {
    List<ScriptInfoHistory> select(ScriptInfoHistory scriptInfoHistory);

    int insert(ScriptInfoHistory scriptInfoHistory);

    int deleteByPrimaryKey(Integer id);

    /**
     * @Description 整理老数据与新数据差异，并入库
     * @param scriptInfoOld 更新前数据
     * @param scriptInfoNew 更新后数据
     * @param status 1-新增, 2-修改，3-删除
     * @return
     */
    int handleParamAndInsert(ScriptInfo scriptInfoOld, ScriptInfo scriptInfoNew, Integer status);

    /**
     * 根据 scriptId 分页查询
     * @param scriptId
     * @param page
     * @param limit
     * @return
     */
    PageDataResult selective(Integer scriptId, Integer page, Integer limit);
}
